﻿<%@ Page Title="Welcome To Top 5 London Restraurants" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="Assignment2_WebAppDevelopment._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <div class="hero-unit">
        <h1>Top Restraurants: London</h1>
        <p class="lead">&nbsp;</p>
        <p class="lead">Simple Site to list and add to the list of the Top Restraurants in London. These are the results as voted by the customer reviews on Google.</p>
        <p class="lead">
       
    <asp:SqlDataSource ID="RestraurantDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:RestraurantConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:RestraurantConnectionString.ProviderName %>" 
        
        SelectCommand="SELECT * FROM [Londonrestraurants]">
    </asp:SqlDataSource>
        <p class="lead">
       
            &nbsp;<p class="lead">
                <asp:GridView ID="GridView2" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="RestraurantDataSource" style="font-size: small; text-align: center; margin-top: 0px;">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" />
                        <asp:BoundField DataField="RestraurantName" HeaderText="Restraurant Name" SortExpression="RestraurantName" />
                        <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />
                        <asp:BoundField DataField="Stars" HeaderText="Stars" SortExpression="Stars" />
                        <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                        <asp:BoundField DataField="ContactDetails" HeaderText="Contact Details" SortExpression="ContactDetails" />
                        <asp:ImageField ControlStyle-Width="70" ControlStyle-Height="80" DataImageUrlField="Picture"  ItemStyle-VerticalAlign="Middle" HeaderText="Pictures"><ControlStyle CssClass="image" /></asp:ImageField>
                        <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Restraurantinformation.aspx?ID={0}" Text="More Detail" />

                    </Columns>
                </asp:GridView>
        <p class="lead">
       

                &nbsp;</div>

</asp:Content>
